package util;

import java.math.BigInteger;

/**
 * 表示多项式的某一项
 */
public class PolyItem {
    //系数
    private BigInteger coefficient;
    //阶
    private int order;

    /**
     * 通过提供系统和阶来初始化多项式的项
     * @param coefficient 系数
     * @param order 阶
     */
    public PolyItem(BigInteger coefficient, int order) {
        this.coefficient = coefficient;
        this.order = order;
    }

    public PolyItem(){

    }

    public BigInteger getCoefficient() {
        return coefficient;
    }

    public void setCoefficient(BigInteger coefficient) {
        this.coefficient = coefficient;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
}
